#include "object.h"
mapobject::mapobject(int x, int y)
{
	mapobject::x=x;
	mapobject::y=y;
}
graphical::graphical(string spriteName, Uint32 rgbKey, bool visible, int xMatch, int yMatch)
{
	_surface=SDL_LoadBMP(spriteName.c_str());
	SDL_SetColorKey(_surface, SDL_SRCCOLORKEY, SDL_MapRGB(_surface->format,
		(rgbKey&0xff0000)>>16, (rgbKey&0xff00)>>8, (rgbKey&0xff)) );
	_visible=visible;
	_xCenter=xMatch;
	_yCenter=yMatch;
}
graphical::~graphical()
{
	SDL_FreeSurface(_surface);
}
SDL_Surface* graphical::GetSurface()
{
	return _surface;
}
int graphical::GetXMatch()
{
	return _xCenter;
}
int graphical::GetYMatch()
{
	return _yCenter;
}
bool graphical::IsVisible()
{
	return _visible;
}